-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix keyword in schema @common #25
Conversation
app/assets/utils/function.ts
Outdated
@@ -4,7 +4,7 @@ import _ from 'lodash'; | |||
import { keyWords } from '#assets/config/nebulaQL'; | |||
|
|||
export const handleKeyword = (name: string) => { | |||
return keyWords.includes(name) ? '`' + name + '`' : name; | |||
return keyWords.includes(name.toLowerCase()) ? '`' + name + '`' : name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return keyWords.includes(name.toLowerCase()) ? `\`${name}\`` : name;
app/assets/utils/gql.ts
Outdated
if (action === 'DROP') { | ||
return name; | ||
return propertyName; | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary else
message.config({ | ||
maxCount: 1, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it need also in explorer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fix bug #19